<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }
        #app{
            padding: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            
        }
        .top h2{
            margin-bottom: 30px;
            color: red;
        }
        .input{
            text-align: center;
        }
        .input input{
            height: 35px;
            width: 250px;
            border-radius: 10px;
            border: 1px solid #ccc;
            outline: none;
            margin-bottom: 30px;
            padding-left: 20px;
        }
        .bottom button{
            width: 250px;
            height: 35px;
            border-radius: 10px;
            border: none;
       
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="top">
            <h2>密码登录</h2>
        </div>
        <div class="input">
            <input type="text" placeholder="请输入手机号" v-model="phone">
            <input type="password" placeholder="请输入密码" v-model="pass">
        </div>
        <div class="bottom">
            <button @click="value">登录</button>
        </div>
    </div>
    <script src="./vue-2.5.21.js"></script>
    <script>
        let v = new Vue({
            el: '#app',
            data : {
                phone : '',
                pass : ''
            },
            methods : {
                value(){
                    console.log(this.phone,this.pass)
                    alert('手机号:'+this.phone+'密码：'+this.pass )
                }
            }
        })
    </script>
</body>
</html>